def shuzizhadan():
    z=0
    while True:
        if z==1:
            break
        t=0
        print("欢迎来到数字炸弹")
        a,e=input("请输入一个数字来确定范围"),input("请输入炸弹")
        if a.isdigit() and e.isdigit():
            a,e=int(a),int(e)
            if a>=e:
                print("游戏现在开始")
                print(t,"-",a)
                while True:
                    c=input("请输入数字")
                    if c.isdigit():
                        c=int(c)
                        if c==e:
                            print("boom!")
                            y=input("是否继续，是输入1，否则输入其它")
                            if y=="1":
                                break
                            else:
                                z+=1
                                break
                        elif t<c<e:
                            t=c
                        elif c>=a or c<t:    #c>e or c<e
                            print("出错")
                        elif a>c>e:
                            a=c
                        print(t,"-",a)
                    else:
                        print("出错")
            else:
                print("出错")
        else:
            print("出错")
shuzizhadan()